<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>代理菜单配置</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  #parse('/headFiles.html')
</head>
<body>
<div class="layui-form" lay-filter="LAY-form" id="LAY-form" style="padding: 20px 30px 0 0;">
	<input type="hidden" name="id" value="$!{id}"/>
	<input type="hidden" name="parentId" value="$!{parentId}"/>
    #if($parentName)
    <div class="layui-form-item">
      <label class="layui-form-label">上级菜单</label>
      <div class="layui-input-block"><div class="layui-form-mid layui-word-aux">$!{parentName}</div></div>
    </div>
   #end
    <div class="layui-form-item">
      <label class="layui-form-label">菜单名称</label>
      <div class="layui-input-block">
        <input type="text" name="name" lay-verify="required" placeholder="必填项" autocomplete="off" class="layui-input" value="$!{name}">
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">图标</label>
      <div class="layui-input-block">
        <input type="text" name="icon" lay-verify="required" placeholder="必填项" autocomplete="off" class="layui-input" value="$!{icon}">
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">优先级</label>
      <div class="layui-input-block">
        <input type="text" name="priority" lay-verify="required" placeholder="必填项" autocomplete="off" class="layui-input" value="$!{priority}">
      </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">类型</label>
        <div class="layui-input-block">
            <select name="type">
                #foreach($item in $typeList)
                <option value="$!{item.index()}" $!{utils.eq($item.index(),$type,'selected')}>$!{item.note()}</option>
                #end
            </select>
        </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">链接</label>
      <div class="layui-input-block">
        <input type="text" name="link" placeholder="类型为“路径”时，必填项" autocomplete="off" class="layui-input" value="$!{link}">
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">权限</label>
      <div class="layui-input-block">
        <textarea name="permission" placeholder="类型为“功能”时，必填项" autocomplete="off" class="layui-textarea">$!{permission}</textarea>
      </div>
    </div>
    <div class="layui-form-item layui-hide">
      <input type="button" lay-submit lay-filter="LAY-form-submit" id="LAY-form-submit" value="确定">
    </div>
</div>
#parse('/footFiles.html')
<script type="text/javascript">
  layui.config({
    base: '$!{webRoot}/assets/layuiadmin/'
  }).extend({
    index: 'lib/index'
  }).use(['index', 'form'], function(){
    var $ = layui.$,form = layui.form;
  });
</script>
</body>
</html>